﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TmU220PrintHelperV2d0.Entity
{
    /// <summary>
    /// 打印机状态
    /// </summary>
    public class PrinterStatusV2d0
    {
        /// <summary>
        /// 是否连接正常
        /// </summary>
        public bool IsConnected = false;
        /// <summary>
        /// 是否可用于打印
        /// </summary>
        public bool IsPrinterReady = false;
        /// <summary>
        /// 纸张用尽
        /// </summary>
        public bool IsPaperExhausted = false;
        /// <summary>
        /// 纸张将用尽
        /// </summary>
        public bool IsPaperExhaustedSoon = false;
        /// <summary>
        /// 打印机故障
        /// </summary>
        public bool IsError = false;
        /// <summary>
        /// 打印机忙
        /// </summary>
        public bool IsBusy = false;
        /// <summary>
        /// 卷纸盖是否正常
        /// </summary>
        public bool IsJzgNormal = true;
        public PrinterStatusV2d0()
        {
            IsConnected = false;
            IsPrinterReady = false;
            IsPaperExhausted = false;
            IsPaperExhaustedSoon = false;
            IsError = false;
            IsBusy = false;
        }
        public PrinterStatusV2d0(bool isConnected,bool isPrinterReady,bool isPaperExhausted,bool isPaperExhaustedSoon,bool isError,bool isBusy)
        {
            IsConnected = isConnected;
            IsPrinterReady = isPrinterReady;
            IsPaperExhausted = isPaperExhausted;
            IsPaperExhaustedSoon = isPaperExhaustedSoon;
            IsError = isError;
            IsBusy = isBusy;
        }
        public PrinterStatusV2d0(bool isConnected, bool isPrinterReady, bool isBusy,bool isJzgNormal)
        {
            IsConnected = isConnected;
            IsPrinterReady = isPrinterReady;
            IsPaperExhausted = false;
            IsPaperExhaustedSoon = false;
            IsError = false;
            IsBusy = isBusy;
            IsJzgNormal = isJzgNormal;
        }
    }
}
